<?php 
$this->headScript()->appendFile( $this->baseUrl() . 'public/scripts/jquery.validate.pack.js' );
$this->inlineScript()->setScript('
$.validator.setDefaults({
	submitHandler: function() { alert("submitted!"); }
});
$().ready(function() {
	// validate signup form on keyup and submit
	$("#zare").validate({
		rules: {
			password: {
				required: true,
				minlength: 5
			},
			confirm_password: {
				required: true,
				minlength: 5,
				equalTo: "#password"
			},
			email: {
				required: true,
				email: true
			}
		},
		messages: {
			password: {
				required: "'.$this->translate("registration_val1").'",
				minlength: "'.$this->translate("registration_val2").'"
			},
			confirm_password: {
				required: "'.$this->translate("registration_val1").'",
				minlength: "'.$this->translate("registration_val2").'",
				equalTo: "'.$this->translate("registration_val13").'"
			},
			email: "'.$this->translate("registration_val4").'"
		}
	});
});

');
?>
<div class="jestesw"><?php echo $this->translate("produkt_ma");?> / <span><?php echo $this->translate("registration_registration");?></span></div>
<div class="naglowek"><?php echo $this->translate("registration_singup");?><?php echo ($this->error)? '<span>'.$this->translate("registration_send").'</span>' : ''?></div>
<div class="konto">
	<form method="post" id="zare" action="">
		<div class="panel">
			<div class="dane"><label><?php echo $this->translate("remind_email");?>:</label><input type="text" name="email" id="email"/></div>
			<div class="dane"><label><?php echo $this->translate("registration_pass");?>:</label><input type="password" name="password" id="password"/></div>
			<div class="dane"><label><?php echo $this->translate("registration_pass");?>:<br/>(<?php echo $this->translate("registration_conf");?>)</label><input type="password" name="confitrm_password" id="confitrm_password"/></div>
			<div class="submit"><input type="submit" value="<?php echo $this->translate("registration_cre");?>"></div>
		</div>
	</form>
	<div class="end"></div>
</div>